package com.gdones.bootserver.bus.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gdones.bootserver.bus.account.dto.Account;
import com.gdones.bootserver.bus.role.dto.RoleUser;
import com.gdones.bootserver.bus.role.dto.RoleUserListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author GaoJingBo
 * @since 2023-03-28
 */
@Mapper
public interface RoleUserMapper extends BaseMapper<RoleUser> {

    List<Account> checkUsersIsHave(@Param("userList")List userList);

    IPage<RoleUserListVO> pages(IPage<RoleUserListVO> page,@Param("user")  Account user, @Param("roleID") String roleID);
}
